<label class="caption1">
    线路分类列表
</label>
<%= render :partial => "admin/new_link", :locals =>{:url => new_admin_tour_category_path, :name => "线路分类"} %>
<br/>
<br/>
<table class="grid" cellpadding="0" cellspacing="0">
    <thead>
        <tr>
            <th>
                分类名称
            </th>
            <th>
                创建时间
            </th>
            <th>
                操作
            </th>
        </tr>
    </thead>
    <tbody>
        <% for tour_category in @tour_categories %>
        <tr>
            <td>
                <%= link_to tour_category.name, [:admin, tour_category] %>
            </td>
            <td class="center">
                <%= tour_category.created_at.to_date %>
            </td>
            <td class="center">
                <%= render :partial => "admin/edit_link", :locals =>{:url => edit_admin_tour_category_path(tour_category)} %>
                |<%= render :partial => "admin/destroy_link", :locals =>{:url => [:admin, tour_category], :name => "分类“#{tour_category.name}”及其线路"} %>
            </td>
        </tr>
        <% end %>
    </tbody>
</table>
